package com.sdy.hospitalguard.biz.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.sdy.hospitalguard.biz.mapper.RoleMapper;
import com.sdy.hospitalguard.biz.model.Role;
import com.sdy.hospitalguard.biz.service.RoleService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author cgj
 * @since 2020-06-01
 */
@Slf4j
@Service
public class RoleServiceImpl extends BaseServiceImpl<Role> implements RoleService {
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> listRole() {
        return list(Wrappers.<Role>lambdaQuery().ne(Role::getId, 1));
    }
}
